@include('admin.header')
<link rel="stylesheet" href="/static/admin/bootstrap/css/bootstrap.min.css">
<div class="container-fluid">

    <!-- 手动报单记录 -->
    <div class="col-md-12" style="margin-bottom: 20px;">
        <table class="table table-striped table-hover">
            <caption>被冲正流失信息</caption>
            <tr class="info">
            <!--转出者-->
                <th>转出用户编号</th>
                <th>转出账号编号</th>
                <th>转出用户账户 </th>
                <th>转出拥有者类型 </th>
                <th>转出用户姓名 </th>
                <th>转出账户类型 </th>
            <!--转入者--> 
                <th>转入用户编号</th>
                <th>转入账号编号</th>
                <th>转入用户账户 </th>
                <th>转入拥有者类型 </th>
                <th>转入用户姓名 </th>
                <th>转入账户类型 </th>
            <!--基本信息--> 
                <th>流水编号</th>
                <th>转账状态 </th>
                <th>转出金额 </th>
                <th>金额单位 </th>
                <th>原因编码 </th>
                <th>转账原因 </th>
                <th>转账时间 </th>
                <th>转出备注 </th>
            </tr>
            @foreach($data as $val)
            <tr>
             <!--转出者-->
                <td>{{$val->out_owner_id}}</td>
                <td>{{$val->out_purse_id}}</td>
                <td>{{$val->out_nodecode}}</td>
                <td>
                  @if($val->out_owner_type == 0)
                      <span>None</span>
                  @elseif($val->out_owner_type == 1)
                      <span>用户账户</span>
                  @elseif($val->out_owner_type == 2)
                      <span>商家账户</span>
                  @elseif($val->out_owner_type == 3)
                      <span>企业账户</span>
                  @else
                      <span>系统账户</span>    
                  @endif
                </td>
                <td>{{$val->out_nodename}}</td>
                 <td>
                  @if($val->outpursetype == 0)
                      <span>None</span>
                  @elseif($val->outpursetype == 1)
                      <span>收益账户</span>
                  @elseif($val->outpursetype == 2)
                      <span>现金账户</span>
                  @elseif($val->outpursetype == 3)
                      <span>积分账户</span>
                  @elseif($val->outpursetype == 4)
                      <span>o2o收益账户</span>    
                  @elseif($val->outpursetype == 96)
                      <span>过账账户</span>    
                  @elseif($val->outpursetype == 97)
                      <span>授信账户</span>    
                  @elseif($val->outpursetype == 98)
                      <span>中央银行账户</span>            
                  @else
                      <span>系统收益账户</span>    
                  @endif
                </td>
                <!--转入者--> 
                <td>{{$val->into_owner_id}}</td>
                <td>{{$val->into_purse_id}}</td>
                <td>{{$val->into_nodecode}}</td>
                <td>
                      @if($val->into_owner_type == 0)
                          <span>None</span>
                      @elseif($val->into_owner_type == 1)
                          <span>用户账户</span>
                      @elseif($val->into_owner_type == 2)
                          <span>商家账户</span>
                      @elseif($val->into_owner_type == 3)
                          <span>企业账户</span>
                      @else
                          <span>系统账户</span>    
                      @endif
                </td>
                <td>{{$val->into_nodename}}</td>
                <td>
                  @if($val->intopursetype == 0)
                      <span>None</span>
                  @elseif($val->intopursetype == 1)
                      <span>收益账户</span>
                  @elseif($val->intopursetype == 2)
                      <span>现金账户</span>
                  @elseif($val->intopursetype == 3)
                      <span>积分账户</span>
                  @elseif($val->intopursetype == 4)
                      <span>o2o收益账户</span>    
                  @elseif($val->intopursetype == 96)
                      <span>过账账户</span>    
                  @elseif($val->intopursetype == 97)
                      <span>授信账户</span>    
                  @elseif($val->intopursetype == 98)
                      <span>中央银行账户</span>            
                  @else
                      <span>系统收益账户</span>    
                  @endif
                </td>
                <!--基本信息-->
                <td>{{$val->transfer_id}}</td>
                  <td>
                    @if($val->status == 0)
                      <span>正常转账</span>
                    @elseif($val->status == 1)
                      <span>冲正记录</span>
                    @else
                      <span>已被冲正</span>
                    @endif 
                 </td>
                <td style="color:red;">{{$val->into_amount}}</td>
                <td>{{$val->currency_unit}}</td>
                <td>{{$val->reason}}</td>
                <td>{{$val->reson_name}}</td>
                <td>{{$val->create_time}}</td>
                <td>{{$val->remarks}}</td>
            </tr>
            @endforeach
        </table>
       
    </div>

    <div class="margin:5px;"></div>

</div>


